
R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows"
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-apple-darwin9.8.0/i386 (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[R.app GUI 1.52 (6188) i386-apple-darwin9.8.0]

[History restored from /Users/emilyallport/.Rapp.history]

> install.packages("foreign")              #install package to read in .dta files
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/foreign_0.8-50.tgz'
Content type 'application/x-gzip' length 417472 bytes (407 Kb)
opened URL
==================================================
downloaded 407 Kb


The downloaded binary packages are in
	/var/folders/tw/gg3nvlhj2zd00vf25p9j7jv00000gn/T//Rtmp8I9EI3/downloaded_packages
> library(foreign)                         #load it
> nes<-read.dta("anes2008.dta")            #read in data file from working directory,
Warning messages:
1: In read.dta("anes2008.dta") :
  value labels (V080001_) for V080001 are missing
2: In read.dta("anes2008.dta") :
  value labels (V081120_) for V081120 are missing
3: In read.dta("anes2008.dta") :
  value labels (V081205_) for V081205 are missing
4: In read.dta("anes2008.dta") :
  value labels (V081206_) for V081206 are missing
5: In read.dta("anes2008.dta") :
  value labels (V084007_) for V084007 are missing
>                                          #and call it "nes". Takes a minute.
> 
> nes$V085064k[nes$V085064k=="-2"] <- NA   #for each selected variable, replace  
> nes$V085064k[nes$V085064k=="-6"] <- NA   #negative values with "NA" and
> nes$V085064k[nes$V085064k=="-8"] <- NA   #generate new variable with
> nes$V085064k[nes$V085064k=="-9"] <- NA   #more intuitive name!
> poorppl<-nes$V085064k
> 
> nes$V085064n[nes$V085064n=="-2"] <- NA
> nes$V085064n[nes$V085064n=="-6"] <- NA
> nes$V085064n[nes$V085064n=="-8"] <- NA
> nes$V085064n[nes$V085064n=="-9"] <- NA
> bigbiz<-nes$V085064n
> 
> nes$V085064p[nes$V085064p=="-2"] <- NA
> nes$V085064p[nes$V085064p=="-6"] <- NA
> nes$V085064p[nes$V085064p=="-8"] <- NA
> nes$V085064p[nes$V085064p=="-9"] <- NA
> welfareppl<-nes$V085064p
> 
> nes$V085064d[nes$V085064d=="-2"] <- NA
> nes$V085064d[nes$V085064d=="-6"] <- NA
> nes$V085064d[nes$V085064d=="-8"] <- NA
> nes$V085064d[nes$V085064d=="-9"] <- NA
> feminists<-nes$V085064d
> 
> nes$V085064b[nes$V085064b=="-2"] <- NA
> nes$V085064b[nes$V085064b=="-6"] <- NA
> nes$V085064b[nes$V085064b=="-8"] <- NA
> nes$V085064b[nes$V085064b=="-9"] <- NA
> cfundamentals<-nes$V085064b
> 
> nes$V085064e[nes$V085064e=="-2"] <- NA
> nes$V085064e[nes$V085064e=="-6"] <- NA
> nes$V085064e[nes$V085064e=="-8"] <- NA
> nes$V085064e[nes$V085064e=="-9"] <- NA
> fedgov<-nes$V085064e
> 
> nes$V085064h[nes$V085064h=="-2"] <- NA
> nes$V085064h[nes$V085064h=="-6"] <- NA
> nes$V085064h[nes$V085064h=="-8"] <- NA
> nes$V085064h[nes$V085064h=="-9"] <- NA
> midclass<-nes$V085064h
> 
> nes$V085064m[nes$V085064m=="-2"] <- NA
> nes$V085064m[nes$V085064m=="-6"] <- NA
> nes$V085064m[nes$V085064m=="-8"] <- NA
> nes$V085064m[nes$V085064m=="-9"] <- NA
> military<-nes$V085064m
> 
> nes$V085064r[nes$V085064r=="-2"] <- NA
> nes$V085064r[nes$V085064r=="-6"] <- NA
> nes$V085064r[nes$V085064r=="-8"] <- NA
> nes$V085064r[nes$V085064r=="-9"] <- NA
> workclass<-nes$V085064r
> 
> nes$V085064u[nes$V085064u=="-2"] <- NA
> nes$V085064u[nes$V085064u=="-6"] <- NA
> nes$V085064u[nes$V085064u=="-8"] <- NA
> nes$V085064u[nes$V085064u=="-9"] <- NA
> gays<-nes$V085064u
> 
> nes$V085064v[nes$V085064v=="-2"] <- NA
> nes$V085064v[nes$V085064v=="-6"] <- NA
> nes$V085064v[nes$V085064v=="-8"] <- NA
> nes$V085064v[nes$V085064v=="-9"] <- NA
> asians<-nes$V085064v
> 
> nes$V085064y[nes$V085064y=="-2"] <- NA
> nes$V085064y[nes$V085064y=="-6"] <- NA
> nes$V085064y[nes$V085064y=="-8"] <- NA
> nes$V085064y[nes$V085064y=="-9"] <- NA
> blacks<-nes$V085064y
> 
> nes$V085064z[nes$V085064z=="-2"] <- NA
> nes$V085064z[nes$V085064z=="-6"] <- NA
> nes$V085064z[nes$V085064z=="-8"] <- NA
> nes$V085064z[nes$V085064z=="-9"] <- NA
> southerners<-nes$V085064z
> 
> nes$V085065a[nes$V085065a=="-2"] <- NA
> nes$V085065a[nes$V085065a=="-6"] <- NA
> nes$V085065a[nes$V085065a=="-8"] <- NA
> nes$V085065a[nes$V085065a=="-9"] <- NA
> undocumented<-nes$V085065a
> 
> nes$V085065b[nes$V085065b=="-2"] <- NA
> nes$V085065b[nes$V085065b=="-6"] <- NA
> nes$V085065b[nes$V085065b=="-8"] <- NA
> nes$V085065b[nes$V085065b=="-9"] <- NA
> richppl<-nes$V085065b
> 
> nes$V085065c[nes$V085065c=="-2"] <- NA
> nes$V085065c[nes$V085065c=="-6"] <- NA
> nes$V085065c[nes$V085065c=="-8"] <- NA
> nes$V085065c[nes$V085065c=="-9"] <- NA
> whiteppl<-nes$V085065c
> 
> nes$V085065e[nes$V085065e=="-2"] <- NA
> nes$V085065e[nes$V085065e=="-6"] <- NA
> nes$V085065e[nes$V085065e=="-8"] <- NA
> nes$V085065e[nes$V085065e=="-9"] <- NA
> muslims<-nes$V085065e
> 
> nes$V085065g[nes$V085065g=="-2"] <- NA
> nes$V085065g[nes$V085065g=="-6"] <- NA
> nes$V085065g[nes$V085065g=="-8"] <- NA
> nes$V085065g[nes$V085065g=="-9"] <- NA
> christians<-nes$V085065g
> 
> nes$V085065h[nes$V085065h=="-2"] <- NA
> nes$V085065h[nes$V085065h=="-6"] <- NA
> nes$V085065h[nes$V085065h=="-8"] <- NA
> nes$V085065h[nes$V085065h=="-9"] <- NA
> atheists<-nes$V085065h
> 
> nes$V085072[nes$V085072=="-1. INAP, R selected for VERSION NEW"] <- NA
> nes$V085072[nes$V085072=="-2. No Post-election IW"] <- NA
> nes$V085072[nes$V085072=="-8. Don't know"] <- NA
> nes$V085072[nes$V085072=="-9. Refused"] <- NA
> interest<-nes$V085072
> 
> nes$V083215x[nes$V083215x=="-4"] <- NA
> nes$V083215x[nes$V083215x=="-8"] <- NA
> nes$V083215x[nes$V083215x=="-9"] <- NA
> age<-nes$V083215x
> 
> nes$V083007[nes$V083007=="-8. Don't know"] <- NA
> nes$V083007[nes$V083007=="-9. Refused"] <- NA
> voted2004<-nes$V083007
> 
> nes$V083018[nes$V083018=="-8. Don't know"] <- NA
> nes$V083018[nes$V083018=="-9. Refused"] <- NA
> internet<-nes$V083018
> 
> 
> nes$V083019[nes$V083019=="-1. INAP, R selected for version NEW"] <- NA
> nes$V083019[nes$V083019=="-8. Don't know"] <- NA
> nes$V083019[nes$V083019=="-9. Refused"] <- NA
> tvnewsdays<-nes$V083019
> 
> nes$V083019a[nes$V083019a=="-1. INAP, R selected for version NEW; 0,-8,-9 in A11b"] <- NA
> nes$V083019a[nes$V083019a=="-8. Don't know"] <- NA
> nes$V083019a[nes$V083019a=="-9. Refused"] <- NA
> tvnewsattention<-nes$V083019a
> 
> nes$V083027[nes$V083027=="-8. Don't know"] <- NA
> nes$V083027[nes$V083027=="-9. Refused"] <- NA
> righttrack<-nes$V083027
> 
> nes$V083097[nes$V083097=="-8. Don't know"] <- NA
> nes$V083097[nes$V083097=="-9. Refused"] <- NA
> partyid<-nes$V083097
> 
> 
> nes$V081102[nes$V081102=="-4. NA (blank recorded)"] <- NA
> nes$V081102[nes$V081102=="-9. Refused in household listing"] <- NA
> nes$V081102[nes$V081102=="6. Black and another race"] <- NA
> nes$V081102[nes$V081102=="5. White and another race"] <- NA
> nes$V081102[nes$V081102=="7. White, black and another race"] <- NA
> race<-nes$V081102
> 
> nes$V083218b[nes$V083218b=="-1. INAP, 0-12,-8,-9 in Y3"] <- NA
> nes$V083218b[nes$V083218b=="-8. Don't know"] <- NA
> nes$V083218b[nes$V083218b=="-9. Refused"] <- NA
> education<-nes$V083218b
> 
> #---------------Example Analyses-------------------#
> 
> summary(education)      #education is a factor variable so it gives
                                      -9. Refused 
                                                0 
                                   -8. Don't know 
                                                0 
                       -1. INAP, 0-12,-8,-9 in Y3 
                                                0 
                              0. No degree earned 
                                              460 
                             1. Bachelor's degree 
                                              333 
                               2. Master's degree 
                                              121 
3. PhD, LIT, SCD, DFA, DLIT, DPH, DPHIL, JSC, SJD 
                                               16 
                                       4. LLB, JD 
                                                5 
                   5. MD, DDS, DVM, MVSA, DSC, DO 
                                                8 
                                 6. JDC, STD, THD 
                                                2 
                         7. Associate degree (AA) 
                                              260 
                                             NA's 
                                             1117 
>                    #number of respondents in each category
> 
> summary(bigbiz)         #bigbiz is a quantitative or numeric
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   0.00   40.00   50.00   55.27   70.00  100.00     259 
>                         #variable, so it gives stats.
> 
> boxplot(bigbiz)         #boxplot of feelings toward big business
> 
> cor(christians, cfundamentals, use="complete.obs")   #correlation between feelings
[1] 0.5477493
>                                                      #about Christians and
>                                                      #Christian fundamentalists
> partyid<-as.numeric(partyid)
> summary(partyid)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   3.00    3.00    4.00    4.09    5.00    7.00      35 
> summary(partyid)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   3.00    3.00    4.00    4.09    5.00    7.00      35 
> summary(race)
-9. Refused in household listing          -4. NA (blank recorded) 
                               0                                0 
                        1. White        2. Black/African-American 
                            1442                              583 
              3. White and black                    4. Other race 
                               0                              262 
       5. White and another race        6. Black and another race 
                               0                                0 
7. White, black and another race                             NA's 
                               0                               35 
> summary(interest)
                         -9. Refused                       -8. Don't know 
                                   0                                    0 
             -2. No Post-election IW -1. INAP, R selected for VERSION NEW 
                                   0                                    0 
                 1. Most of the time                  2. Some of the time 
                                 276                                  403 
                3. Only now and then                     4. Hardly at all 
                                 253                                  109 
                                NA's 
                                1281 
> interest<-as.numeric(interest)
> 
> summary(interest)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
  5.000   5.000   6.000   6.187   7.000   8.000    1281 
> plot(density(interest, na.rm=true))
Error in density.default(interest, na.rm = true) : 
  object 'true' not found
> hist(interest)
> cor(christians, muslims, use="complete.obs")
[1] 0.1068496
> scatterplot(christians, muslims)
Error: could not find function "scatterplot"
> install.packages("car")
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/car_2.0-14.tgz'
Content type 'application/x-gzip' length 1049722 bytes (1.0 Mb)
opened URL
==================================================
downloaded 1.0 Mb


The downloaded binary packages are in
	/var/folders/tw/gg3nvlhj2zd00vf25p9j7jv00000gn/T//Rtmp8I9EI3/downloaded_packages
> scatterplot(christians, muslims)
Error: could not find function "scatterplot"
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/scatterplot3d_0.3-33.tgz'
Content type 'application/x-gzip' length 596698 bytes (582 Kb)
opened URL
==================================================
downloaded 582 Kb


The downloaded binary packages are in
	/var/folders/tw/gg3nvlhj2zd00vf25p9j7jv00000gn/T//Rtmp8I9EI3/downloaded_packages
> scatterplot3d(christians, muslims)
Error: could not find function "scatterplot3d"
> scatterplot(christians, muslims)
Error: could not find function "scatterplot"
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/boot_1.3-5.tgz'
Content type 'application/x-gzip' length 467764 bytes (456 Kb)
opened URL
==================================================
downloaded 456 Kb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/class_7.3-4.tgz'
Content type 'application/x-gzip' length 82462 bytes (80 Kb)
opened URL
==================================================
downloaded 80 Kb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/KernSmooth_2.23-8.tgz'
Content type 'application/x-gzip' length 88598 bytes (86 Kb)
opened URL
==================================================
downloaded 86 Kb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/lattice_0.20-10.tgz'
Content type 'application/x-gzip' length 709231 bytes (692 Kb)
opened URL
==================================================
downloaded 692 Kb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/MASS_7.3-21.tgz'
Content type 'application/x-gzip' length 868780 bytes (848 Kb)
opened URL
==================================================
downloaded 848 Kb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/Matrix_1.0-9.tgz'
Content type 'application/x-gzip' length 3234174 bytes (3.1 Mb)
opened URL
==================================================
downloaded 3.1 Mb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/mgcv_1.7-21.tgz'
Content type 'application/x-gzip' length 1646510 bytes (1.6 Mb)
opened URL
==================================================
downloaded 1.6 Mb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/nnet_7.3-4.tgz'
Content type 'application/x-gzip' length 88492 bytes (86 Kb)
opened URL
==================================================
downloaded 86 Kb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/rpart_3.1-54.tgz'
Content type 'application/x-gzip' length 238355 bytes (232 Kb)
opened URL
==================================================
downloaded 232 Kb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/spatial_7.3-4.tgz'
Content type 'application/x-gzip' length 130472 bytes (127 Kb)
opened URL
==================================================
downloaded 127 Kb


The downloaded binary packages are in
	/var/folders/tw/gg3nvlhj2zd00vf25p9j7jv00000gn/T//Rtmp8I9EI3/downloaded_packages
> scatterplot(christians, muslims)
Error: could not find function "scatterplot"
> ~/Downloads/car
Error: unexpected '/' in "~/"
> # last modified 2012-09-11 by J. Fox
> 
> export(
+     basicPowerAxis,
+     bcPowerAxis,
+     Boxplot,
+     carWeb,
+     confidenceEllipse,
+     contr.Helmert,
+     contr.Sum,
+     contr.Treatment,
+     dataEllipse,
+     ellipse,
+     logit,
+     panel.car,
+     probabilityAxis,
+     qqPlot,
+     qqp,
+     recode,
+     regLine,
+     scatter3d,
+     scatterplot, 
+     scatterplotMatrix,
+     sigmaHat,
+     slp,
+     some,
+     sp,
+     spm,
+     spreadLevelPlot,
+     symbox,
+     which.names, whichNames,
+     yjPowerAxis,
+     
+     Anova,
+ 	basicPower, bcPower, yjPower, powerTransform,
+ 	boxCox,
+ 	boxCoxVariable,
+ 	boxTidwell,
+ 	ceresPlot,
+     ceresPlots,
+     crPlot,
+     crPlots,
+     crp,
+ 	deltaMethod,
+ 	dfbetaPlots,
+ 	dfbetasPlots,
+ 	dwt,
+ 	durbinWatsonTest,
+ 	estimateTransform, testTransform,	
+ 	hccm,
+ 	identify3d,
+ 	infIndexPlot,
+ 	influenceIndexPlot,
+ 	influencePlot,
+ 	invResPlot, inverseResponsePlot, invTranPlot, invTranEstimate,
+ 	leveneTest,
+ 	leveragePlot,
+     leveragePlots,
+ 	lht,
+     linearHypothesis,
+     Manova,
+     mmp, mmps, marginalModelPlot, marginalModelPlots,
+     ncvTest,
+     outlierTest,
+     vif,
+     avPlot, avPlots, showLabels, residualPlot, residualPlots,
+     bootCase, nextBoot,
+     subsets,
+     compareCoefs,
+     matchCoefs,
+     Boot,
+     gamLine,
+     loessLine,
+     quantregLine,
+     
+     # deprecated functions
+     av.plot,
+     av.plots,
+     box.cox,
+     bc,
+     box.cox.powers,
+     box.cox.var,
+     box.tidwell,
+     cookd,
+     confidence.ellipse,
+     ceres.plot,
+     ceres.plots,
+     cr.plot,
+     cr.plots,
+     data.ellipse,
+     durbin.watson,
+     levene.test,
+     leverage.plot,
+     leverage.plots,
+     linear.hypothesis,
+     outlier.test,
+     ncv.test,
+     qq.plot,
+     scatterplot.matrix,
+     spread.level.plot,
+     wcrossprod
+ )    
Error: could not find function "export"
> 
> # methods
> 
> S3method(confidenceEllipse, default)    
Error: could not find function "S3method"
> S3method(confidenceEllipse, glm)    
Error: could not find function "S3method"
> S3method(confidenceEllipse, lm)     
Error: could not find function "S3method"
> S3method(print, spreadLevelPlot)   
Error: could not find function "S3method"
> S3method(qqPlot, default)           
Error: could not find function "S3method"
> S3method(qqPlot, glm)               
Error: could not find function "S3method"
> S3method(qqPlot, lm)    
Error: could not find function "S3method"
> S3method(scatter3d, default)
Error: could not find function "S3method"
> S3method(scatter3d, formula)
Error: could not find function "S3method"
> S3method(scatterplot, default)       
Error: could not find function "S3method"
> S3method(scatterplot, formula)       
Error: could not find function "S3method"
> S3method(scatterplotMatrix, default)
Error: could not find function "S3method"
> S3method(scatterplotMatrix, formula)
Error: could not find function "S3method"
> S3method(sigmaHat, default)
Error: could not find function "S3method"
> S3method(sigmaHat, lm)
Error: could not find function "S3method"
> S3method(sigmaHat, glm)
Error: could not find function "S3method"
> S3method(some, data.frame)           
Error: could not find function "S3method"
> S3method(some, default)              
Error: could not find function "S3method"
> S3method(some, matrix)      
Error: could not find function "S3method"
> S3method(spreadLevelPlot, default) 
Error: could not find function "S3method"
> S3method(spreadLevelPlot, formula) 
Error: could not find function "S3method"
> S3method(spreadLevelPlot, lm)     
Error: could not find function "S3method"
> S3method(subsets, regsubsets)  
Error: could not find function "S3method"
> S3method(boxCox, default)
Error: could not find function "S3method"
> S3method(boxCox, lm)
Error: could not find function "S3method"
> S3method(boxCox, formula)      
Error: could not find function "S3method"
> 
> S3method(Anova, aov)
Error: could not find function "S3method"
> S3method(Anova, coxph)
Error: could not find function "S3method"
> S3method(Anova, default)
Error: could not find function "S3method"
> S3method(Anova, glm)
Error: could not find function "S3method"
> S3method(Anova, lm)
Error: could not find function "S3method"
> S3method(Anova, lme)
Error: could not find function "S3method"
> S3method(Anova, manova)
Error: could not find function "S3method"
> S3method(Anova, mer)
Error: could not find function "S3method"
> S3method(Anova, multinom)
Error: could not find function "S3method"
> S3method(Anova, mlm)
Error: could not find function "S3method"
> S3method(Anova, polr)
Error: could not find function "S3method"
> S3method(Anova, survreg)
Error: could not find function "S3method"
> S3method(Anova, svyglm)
Error: could not find function "S3method"
> S3method(avPlot, lm)
Error: could not find function "S3method"
> S3method(avPlot, glm)
Error: could not find function "S3method"
> S3method(bootCase, lm)
Error: could not find function "S3method"
> S3method(bootCase, glm)
Error: could not find function "S3method"
> S3method(bootCase, nls)
Error: could not find function "S3method"
> S3method(Boxplot, default)
Error: could not find function "S3method"
> S3method(Boxplot, formula)
Error: could not find function "S3method"
> S3method(nextBoot, lm)
Error: could not find function "S3method"
> S3method(nextBoot, nls)
Error: could not find function "S3method"
> S3method(boxTidwell, default)
Error: could not find function "S3method"
> S3method(boxTidwell, formula)
Error: could not find function "S3method"
> S3method(ceresPlot, glm)            
Error: could not find function "S3method"
> S3method(ceresPlot, lm)
Error: could not find function "S3method"
> # S3method(coef, multinom)
> S3method(crPlot, glm)               
Error: could not find function "S3method"
> S3method(crPlot, lm)              
Error: could not find function "S3method"
> S3method(deltaMethod, default)
Error: could not find function "S3method"
> S3method(deltaMethod, lm)
Error: could not find function "S3method"
> S3method(deltaMethod,multinom)
Error: could not find function "S3method"
> S3method(deltaMethod,polr)
Error: could not find function "S3method"
> S3method(deltaMethod, nls)
Error: could not find function "S3method"
> S3method(deltaMethod, survreg)
Error: could not find function "S3method"
> S3method(deltaMethod, coxph)
Error: could not find function "S3method"
> S3method(deltaMethod, mer)
Error: could not find function "S3method"
> S3method(deltaMethod, lme)
Error: could not find function "S3method"
> S3method(deltaMethod, lmList)
Error: could not find function "S3method"
> S3method(dfbetaPlots, lm)
Error: could not find function "S3method"
> S3method(dfbetasPlots, lm)
Error: could not find function "S3method"
> S3method(durbinWatsonTest, default)
Error: could not find function "S3method"
> S3method(durbinWatsonTest, lm)
Error: could not find function "S3method"
> S3method(powerTransform, default)
Error: could not find function "S3method"
> S3method(powerTransform, lm)
Error: could not find function "S3method"
> S3method(influencePlot, lm)
Error: could not find function "S3method"
> S3method(inverseResponsePlot, lm)
Error: could not find function "S3method"
> S3method(invTranPlot, formula)
Error: could not find function "S3method"
> S3method(invTranPlot, default)
Error: could not find function "S3method"
> S3method(infIndexPlot, lm)
Error: could not find function "S3method"
> S3method(powerTransform, formula)
Error: could not find function "S3method"
> S3method(hccm, default)
Error: could not find function "S3method"
> S3method(hccm, lm)
Error: could not find function "S3method"
> S3method(leveneTest, formula)
Error: could not find function "S3method"
> S3method(leveneTest, lm)
Error: could not find function "S3method"
> S3method(leveneTest, default)
Error: could not find function "S3method"
> S3method(leveragePlot, glm)         
Error: could not find function "S3method"
> S3method(leveragePlot, lm)     
Error: could not find function "S3method"
> S3method(linearHypothesis, default)
Error: could not find function "S3method"
> S3method(linearHypothesis, glm)
Error: could not find function "S3method"
> S3method(linearHypothesis, lm)
Error: could not find function "S3method"
> S3method(linearHypothesis, lme)
Error: could not find function "S3method"
> S3method(linearHypothesis, mer)
Error: could not find function "S3method"
> S3method(linearHypothesis, mlm)
Error: could not find function "S3method"
> S3method(linearHypothesis, polr)
Error: could not find function "S3method"
> S3method(linearHypothesis, svyglm)
Error: could not find function "S3method"
> S3method(Manova, mlm)
Error: could not find function "S3method"
> S3method(matchCoefs, default)
Error: could not find function "S3method"
> S3method(matchCoefs, lme)
Error: could not find function "S3method"
> S3method(matchCoefs, mer)
Error: could not find function "S3method"
> S3method(matchCoefs, mlm)
Error: could not find function "S3method"
> S3method(mmp, default)
Error: could not find function "S3method"
> S3method(mmp, lm)
Error: could not find function "S3method"
> S3method(mmp, glm)
Error: could not find function "S3method"
> S3method(ncvTest, glm)
Error: could not find function "S3method"
> S3method(ncvTest, lm)
Error: could not find function "S3method"
> S3method(outlierTest, lm)
Error: could not find function "S3method"
> S3method(print, Anova.mlm)
Error: could not find function "S3method"
> S3method(print, boxTidwell)
Error: could not find function "S3method"
> S3method(print, linearHypothesis.mlm)
Error: could not find function "S3method"
> S3method(print, chisqTest)
Error: could not find function "S3method"
> S3method(print, durbinWatsonTest)
Error: could not find function "S3method"
> S3method(print, outlierTest)
Error: could not find function "S3method"
> S3method(print, powerTransform)
Error: could not find function "S3method"
> S3method(print, summary.powerTransform)
Error: could not find function "S3method"
> S3method(summary, Anova.mlm)
Error: could not find function "S3method"
> S3method(print,powerTransform)
Error: could not find function "S3method"
> S3method(print,summary.powerTransform)
Error: could not find function "S3method"
> S3method(summary,powerTransform)
Error: could not find function "S3method"
> S3method(plot,powerTransform)
Error: could not find function "S3method"
> S3method(coef,powerTransform)
Error: could not find function "S3method"
> S3method(vcov,powerTransform)
Error: could not find function "S3method"
> S3method(testTransform,powerTransform)
Error: could not find function "S3method"
> S3method(residualPlots,lm)
Error: could not find function "S3method"
> S3method(residualPlots,glm)
Error: could not find function "S3method"
> S3method(residualPlot,default)
Error: could not find function "S3method"
> S3method(residualPlot,lm)
Error: could not find function "S3method"
> S3method(residualPlot,glm)
Error: could not find function "S3method"
> S3method(summary, powerTransform)
Error: could not find function "S3method"
> S3method(coef, powerTransform)
Error: could not find function "S3method"
> S3method(vcov, powerTransform)
Error: could not find function "S3method"
> S3method(vif, lm)
Error: could not find function "S3method"
> S3method(symbox, formula)
Error: could not find function "S3method"
> S3method(symbox, default)
Error: could not find function "S3method"
> 
> # methods related to Boot
> S3method(Boot, default)
Error: could not find function "S3method"
> S3method(Boot, lm)
Error: could not find function "S3method"
> S3method(Boot, glm)
Error: could not find function "S3method"
> S3method(hist, boot)
Error: could not find function "S3method"
> S3method(confint, boot)
Error: could not find function "S3method"
> S3method(summary, boot)
Error: could not find function "S3method"
> S3method(print, summary.boot)
Error: could not find function "S3method"
> S3method(print, confint.boot)
Error: could not find function "S3method"
> 
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/car_2.0-14.tgz'
Content type 'application/x-gzip' length 1049722 bytes (1.0 Mb)
opened URL
==================================================
downloaded 1.0 Mb


The downloaded binary packages are in
	/var/folders/tw/gg3nvlhj2zd00vf25p9j7jv00000gn/T//Rtmp8I9EI3/downloaded_packages
> scatterplot(christians, muslims)
Error: could not find function "scatterplot"
> plot(christians, muslims)
> scatterplot(christians, muslims)
Error: could not find function "scatterplot"
> library(car)
Loading required package: MASS
Loading required package: nnet
> library(nnet)
> library(MASS)
> library(car)
> scatterplot(christians, muslims)
> cor(christians, muslims, use="complete.obs")
[1] 0.1068496
> summary(partyid)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   3.00    3.00    4.00    4.09    5.00    7.00      35 
> plot(density(partyid, na.rm=true))
Error in density.default(partyid, na.rm = true) : object 'true' not found
> plot(partyid)
> hist(partyid)
> summary(tvnewsdays)
                         -9. Refused                       -8. Don't know 
                                   0                                    0 
-1. INAP, R selected for version NEW                              0. None 
                                   0                                  242 
                          1. One day                          2. Two days 
                                 110                                  126 
                       3. Three days                         4. Four days 
                                 110                                   74 
                        5. Five days                          6. Six days 
                                 107                                   36 
                       7. Seven days                                 NA's 
                                 347                                 1170 
> tvnewsdays<-as.numeric(tvnewsdays)
> summary(tvnewsdays)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
  4.000   5.000   7.000   7.618  11.000  11.000    1170 
> plot(tvnewsdays)
> plot(christians)
> boxplot(christians)
> boxplot(tvnewsdays)
> boxplot(christians)
> boxplot(muslims)
> wvioplot(nes&tvnewsdays), col=green
Error: unexpected ',' in "wvioplot(nes&tvnewsdays),"
> vioplot(nes&tvnewsdays) col=green
Error: unexpected symbol in "vioplot(nes&tvnewsdays) col"
> library(vioplot)
Error in library(vioplot) : there is no package called ‘vioplot’
> library(vioplot)
Error in library(vioplot) : there is no package called ‘vioplot’
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/vioplot_0.2.tgz'
Content type 'application/x-gzip' length 10476 bytes (10 Kb)
opened URL
==================================================
downloaded 10 Kb


The downloaded binary packages are in
	/var/folders/tw/gg3nvlhj2zd00vf25p9j7jv00000gn/T//Rtmp8I9EI3/downloaded_packages
> vioplot(nes&tvnewsdays), col=green
Error: unexpected ',' in "vioplot(nes&tvnewsdays),"
> vioplot(nes%tvnewsdays)
Error: unexpected input in "vioplot(nes%tvnewsdays)"
> vioplot(tvnewsdays)
Error: could not find function "vioplot"
> wvioplot(nes&tvnewsdays), col=green'
Error: unexpected ',' in "wvioplot(nes&tvnewsdays),"
> library vioplot
Error: unexpected symbol in "library vioplot"
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/wvioplot_0.1.tgz'
Content type 'application/x-gzip' length 11982 bytes (11 Kb)
opened URL
==================================================
downloaded 11 Kb


The downloaded binary packages are in
	/var/folders/tw/gg3nvlhj2zd00vf25p9j7jv00000gn/T//Rtmp8I9EI3/downloaded_packages
> wvioplot(nes&race(col="green"))
Error: could not find function "wvioplot"
> vioplot(nes&race(col="green"))
Error: could not find function "vioplot"
> library(vioplot)
Loading required package: sm
Error: package ‘sm’ could not be loaded
In addition: Warning message:
In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) :
  there is no package called ‘sm’
> library(sm)
Error in library(sm) : there is no package called ‘sm’
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.15/sm_2.2-4.1.tgz'
Content type 'application/x-gzip' length 327503 bytes (319 Kb)
opened URL
==================================================
downloaded 319 Kb


The downloaded binary packages are in
	/var/folders/tw/gg3nvlhj2zd00vf25p9j7jv00000gn/T//Rtmp8I9EI3/downloaded_packages
> library(vioplot)
Loading required package: sm
Package `sm', version 2.2-4.1
Copyright (C) 1997, 2000, 2005, 2007, 2008, A.W.Bowman & A.Azzalini
Type help(sm) for summary information

Error: bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning message:
file ‘sm_2.2-4.1.tar’ has magic number 'sm/'
   Use of save versions prior to 2 is deprecated 
> 
> library(vioplot)
> vioplot(nes&tvnewsdays), col="green"
Error: unexpected ',' in "vioplot(nes&tvnewsdays),"
> vioplot(tvnewsdays)
Error in quantile.default(data, 0.25) : 
  missing values and NaN's not allowed if 'na.rm' is FALSE
> vioplot(NES&tvnewsdays)
Error in vioplot(NES & tvnewsdays) : object 'NES' not found
> vioplot(nes&tvnewsdays)
Error in FUN(left, right) : 
  operations are possible only for numeric, logical or complex types
> tvnewsdays<-as.numeric(tvnewsdays)
> vioplot(nes&tvnewsdays)
Error in FUN(left, right) : 
  operations are possible only for numeric, logical or complex types
> vioplot(nes&tvnewsdays), col="green"
Error: unexpected ',' in "vioplot(nes&tvnewsdays),"
> vioplot(nes&race)
Error in nes & race : 
  operations are possible only for numeric, logical or complex types
In addition: Warning message:
In vioplot(nes & race) :
  Incompatible methods ("Ops.data.frame", "Ops.factor") for "&"
> vioplot(race)
Error in Summary.factor(c(6L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 3L,  : 
  min not meaningful for factors
> summary(christians)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   0.00   60.00   85.00   78.55  100.00  100.00     253 
> summary(muslims)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   0.00   48.75   50.00   51.79   60.00  100.00     350 
> scatterplot(gays,blacks)
> summary(gays)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   0.00   40.00   50.00   49.74   70.00  100.00     281 
> summary(blacks)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   0.00   50.00   70.00   72.04   85.00  100.00     267 
> cor(blacks, gays, use="complete.obs")
[1] 0.2404052
> summary(partid)
Error in summary(partid) : object 'partid' not found
> summary(partyid)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
   3.00    3.00    4.00    4.09    5.00    7.00      35 
> hist(education)
Error in hist.default(education) : 'x' must be numeric
> summary(education)
                                      -9. Refused 
                                                0 
                                   -8. Don't know 
                                                0 
                       -1. INAP, 0-12,-8,-9 in Y3 
                                                0 
                              0. No degree earned 
                                              460 
                             1. Bachelor's degree 
                                              333 
                               2. Master's degree 
                                              121 
3. PhD, LIT, SCD, DFA, DLIT, DPH, DPHIL, JSC, SJD 
                                               16 
                                       4. LLB, JD 
                                                5 
                   5. MD, DDS, DVM, MVSA, DSC, DO 
                                                8 
                                 6. JDC, STD, THD 
                                                2 
                         7. Associate degree (AA) 
                                              260 
                                             NA's 
                                             1117 
> education<-as.numeric(education)
> summary(education)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
  4.000   4.000   5.000   6.087   6.000  11.000    1117 
> hist(education)
> 